# data analysis
import requests

if __name__ == "__main__":
    # ua伪装
    headers = {
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36 Edg/97.0.1072.62"
    }
    imageContent = requests.get(
        "https://fanyi-cdn.cdn.bcebos.com/static/translation/img/header/logo_e835568.png", headers=headers).content
    with open("./file/fanyi.png", "wb") as fp:
        fp.write(imageContent)
    print("over!!!")
